﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BLL;
using IFactory;

public partial class Left : System.Web.UI.Page
{
    Authentication dllAuthentication = new Authentication();
    int _display = 0;
    Model.UserInfo objUserInfo = new Model.UserInfo();
    DataTable _powerTable = new DataTable();

    /*******导航栏显示的项目根据登录用户是否为部门经理所决定*******/
    protected void Page_Load(object sender, EventArgs e)
    {
        dllAuthentication.isLogin();
        _display = dllAuthentication.IsManager(objUserInfo.UserName);
        //设置左侧导航的高度，根据浏览器实际分辨率设定
        Page.RegisterStartupScript("height", "<script>cspbSetHeight(document.body.offsetHeight);</script>");
        bindPanel();
    }





    /// <summary>
    /// 帮定左侧导航栏
    /// </summary>
    void bindPanel()
    {
        panel.ClearPixelImage = "/ClearPixel.gif";
        panel.ScrollDownActiveImage = "images/ScrollDownDisabled.gif";
        panel.ScrollDownDisabledImage = "images/ScrollDownDisabled.gif";
        panel.ScrollDownEnabledImage = "images/ScrollDownDisabled.gif";
        panel.ScrollUpActiveImage = "images/ScrollUpDisabled.gif";
        panel.ScrollUpDisabledImage = "images/ScrollUpDisabled.gif";
        panel.ScrollUpEnabledImage = "images/ScrollUpDisabled.gif";
        panel.ExpandMode = Coalesys.PanelBar.ExpandModeConstants.SingleGroupCalculatedHeight;

        Coalesys.PanelBar.Group cspbGroup = null;
        Coalesys.PanelBar.Item cspbItem = null;

        #region 战略计划

        cspbGroup = panel.Groups.Add();
        cspbGroup.Caption = "战略计划管理";

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "战略计划查看");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "战略计划查看";
            cspbItem.IconImage = "images/queryPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "StrategicPlan/StrategicPlanList.aspx";
        }


        #endregion


        #region 总表计划


        //cspbGroup = panel.Groups.Add();
        //cspbGroup.Caption = "总表计划管理";

        //_powerTable = dllAuthentication.getPower(objUserInfo.UserName, "添加总表计划");
        //if (_powerTable.Rows.Count > 0)
        //{
        //    cspbItem = cspbGroup.Items.Add();
        //    cspbItem.Caption = "添加总表计划";
        //    cspbItem.IconImage = "images/addPlan.gif";
        //    cspbItem.Target = "fmain";
        //    cspbItem.URL = "TotalPlan/TotalPlanAdd.aspx";
        //}

        //_powerTable = dllAuthentication.getPower(objUserInfo.UserName, "总表计划查看");
        //if (_powerTable.Rows.Count > 0)
        //{
        //    cspbItem = cspbGroup.Items.Add();
        //    cspbItem.Caption = "总表计划查看";
        //    cspbItem.IconImage = "images/queryPlan.gif";
        //    cspbItem.Target = "fmain";
        //    cspbItem.URL = "TotalPlan/TotalPlanList.aspx";
        //}

        //_powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待发总表计划");
        //if (_powerTable.Rows.Count > 0)
        //{
        //    cspbItem = cspbGroup.Items.Add();
        //    cspbItem.Caption = "待发总表计划";
        //    cspbItem.IconImage = "images/addResolve.gif";
        //    cspbItem.Target = "fmain";
        //    cspbItem.URL = "TotalPlan/DraftTotalPlan.aspx";
        //}

        //_powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已发总表计划");
        //if (_powerTable.Rows.Count > 0)
        //{
        //    cspbItem = cspbGroup.Items.Add();
        //    cspbItem.Caption = "已发总表计划";
        //    cspbItem.IconImage = "images/queryResolve.gif";
        //    cspbItem.Target = "fmain";
        //    cspbItem.URL = "TotalPlan/SendTotalPlan.aspx";
        //}

        //_powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待处理总表计划");
        //if (_powerTable.Rows.Count > 0)
        //{
        //    cspbItem = cspbGroup.Items.Add();
        //    cspbItem.Caption = "待处理总表计划";
        //    cspbItem.IconImage = "images/Evaluate.gif";
        //    cspbItem.Target = "fmain";
        //    cspbItem.URL = "TotalPlan/PendingTotalPlan.aspx";
        //}

        //_powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已处理总表计划");
        //if (_powerTable.Rows.Count > 0)
        //{
        //    cspbItem = cspbGroup.Items.Add();
        //    cspbItem.Caption = "已处理总表计划";
        //    cspbItem.IconImage = "images/Verify.gif";
        //    cspbItem.Target = "fmain";
        //    cspbItem.URL = "TotalPlan/ProcessedTotalPlan.aspx";
        //}


        #endregion

        #region 专项计划
        cspbGroup = panel.Groups.Add();
        cspbGroup.Caption = "专项计划管理";



        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "添加专项计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加专项计划";
            cspbItem.IconImage = "images/addPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "SpecialPlan/AddSpecialPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "专项计划查看");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "查看专项计划";
            cspbItem.IconImage = "images/queryPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "SpecialPlan/SpecialPlanList.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待发专项计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待发专项计划";
            cspbItem.IconImage = "images/addResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "SpecialPlan/DraftSpecialPlan.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已发专项计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已发专项计划";
            cspbItem.IconImage = "images/queryResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "SpecialPlan/SentSpecialPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待处理专项计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待处理专项计划";
            cspbItem.IconImage = "images/Evaluate.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "SpecialPlan/NoVerifySpecialPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已处理专项计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已处理专项计划 ";
            cspbItem.IconImage = "images/Verify.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "SpecialPlan/VerifyedSpecialPlan.aspx";
        }



        #endregion

        #region 年计划
        cspbGroup = panel.Groups.Add();
        cspbGroup.Caption = "年计划管理";



        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "添加年计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加部门年计划";
            cspbItem.IconImage = "images/addPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/QuarterPlanAdd.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "年计划查看");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "查看部门年计划";
            cspbItem.IconImage = "images/queryPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/QuarterPlanList.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待发年计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待发部门年计划";
            cspbItem.IconImage = "images/addResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/DraftQuarterPlan.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已发年计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已发部门年计划";
            cspbItem.IconImage = "images/queryResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/SendedQuarterPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待处理年计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待处理部门年计划";
            cspbItem.IconImage = "images/Evaluate.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/NoEvaluateQuarterPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已处理年计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已处理部门年计划 ";
            cspbItem.IconImage = "images/Verify.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/NoVerifyQuarterPlan.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "年会议记录");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "年会议资料";
            cspbItem.IconImage = "images/weekRemind.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/QuarterPlanMeet.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "添加鱼骨图");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加鱼骨图";
            cspbItem.IconImage = "images/addPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/AddFishBoneDiagram.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "鱼骨图查看");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "鱼骨图查看";
            cspbItem.IconImage = "images/queryPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/FishBoneDiagramList.aspx";
        }
        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "添加年计划前言");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加年计划前言";
            cspbItem.IconImage = "images/addPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/AddYearIntroduction.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "年计划前言查看");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "年计划前言查看";
            cspbItem.IconImage = "images/queryPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "QuarterPlan/YearIntroductionList.aspx";
        }
        #endregion

        #region 月计划

        cspbGroup = panel.Groups.Add();
        cspbGroup.Caption = "月计划管理";

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "添加月计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加部门月计划";
            cspbItem.IconImage = "images/addPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/MonthPlanAdd.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "月计划查看");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "查看部门月计划";
            cspbItem.IconImage = "images/queryPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/MonthList.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待发月计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待发部门月计划";
            cspbItem.IconImage = "images/addResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/DraftMonthPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已发月计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已发部门月计划";
            cspbItem.IconImage = "images/queryResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/YiFaMonthPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待处理月计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待处理部门月计划";
            cspbItem.IconImage = "images/Evaluate.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/NoVerifyMonthPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已处理月计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已处理部门月计划";
            cspbItem.IconImage = "images/Verify.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/NoShenHe.aspx";
        }
        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "月会议记录");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "月会议资料";
            cspbItem.IconImage = "images/weekRemind.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/MonthPlanMeet.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "月握手关系");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门月握手关系";
            cspbItem.IconImage = "images/noHandshake.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/MonthHandShake.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "月工作提醒");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门月工作提醒";
            cspbItem.IconImage = "images/noHandshake.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Month/AddMonthRemind.aspx";
        }

        if (_display == 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加员工月计划";
            cspbItem.IconImage = "images/UserPlanAdd.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanMonth/UserPlanMonthAdd.aspx";
        }

        if (_display == 0 || _display == 1)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "查看员工月计划";
            cspbItem.IconImage = "images/UserPlanList.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanMonth/MonthList.aspx";
        }


        if (_display == 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待发员工月计划";
            cspbItem.IconImage = "images/UserPlanDraft.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanMonth/UserPlanDraftMonth.aspx";
        }

        if (_display == 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已发员工月计划";
            cspbItem.IconImage = "images/SendUserPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanMonth/SendUserPlanMonth.aspx";
        }
        if (_display == 1)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待处理员工月计划";
            cspbItem.IconImage = "images/NoEvaluateUserPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanMonth/NoEvaluateUserPlanMonth.aspx";
        }
        if (_display == 1)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已处理员工月计划";
            cspbItem.IconImage = "images/EvaluateUserPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanMonth/EvaluateUserPlanMonth.aspx";
        }

        #endregion

        #region 周计划


        cspbGroup = panel.Groups.Add();
        cspbGroup.Caption = "周计划管理";


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "添加周计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加部门周计划";
            cspbItem.IconImage = "images/addPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/WeekPlanAdd.aspx";
        }



        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "周计划查看");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "查看部门周计划";
            cspbItem.IconImage = "images/queryPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/WeekList.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待发周计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待发部门周计划";
            cspbItem.IconImage = "images/addResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/DraftWeekPlan.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已发周计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已发部门周计划";
            cspbItem.IconImage = "images/queryResolve.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/SendWeekPlan.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "待处理周计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待处理部门周计划";
            cspbItem.IconImage = "images/Evaluate.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/NoEvaluateWeekPlan.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "已处理周计划");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已处理部门周计划";
            cspbItem.IconImage = "images/Verify.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/NoVerifyWeekPlan.aspx";
        }


        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "周会议记录");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "周会议资料";
            cspbItem.IconImage = "images/weekRemind.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/WeekPlanMeet.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "周握手关系");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门周握手关系";
            cspbItem.IconImage = "images/noHandshake.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/WeekHandShake.aspx";
        }

        _powerTable = dllAuthentication.getPower(objUserInfo.UserName, "周工作提醒");
        if (_powerTable.Rows.Count > 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门周工作提醒";
            cspbItem.IconImage = "images/noHandshake.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Week/AddWeekRemind.aspx";
        }

        if (_display == 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "添加员工周计划";
            cspbItem.IconImage = "images/UserPlanAdd.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanWeek/UserPlanWeekAdd.aspx";
        }


        if (_display == 0 || _display == 1)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "查看员工周计划";
            cspbItem.IconImage = "images/UserPlanList.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanWeek/WeekList.aspx";
        }


        if (_display == 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待发员工周计划";
            cspbItem.IconImage = "images/UserPlanDraft.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanWeek/DraftUserWeekPlan.aspx";
        }


        if (_display == 0)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已发员工周计划";
            cspbItem.IconImage = "images/SendUserPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanWeek/SendUserPlanWeek.aspx";
        }


        if (_display == 1)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "待处理员工周计划";
            cspbItem.IconImage = "images/NoEvaluateUserPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanWeek/EvaluateUserPlanWeek.aspx";
        }


        if (_display == 1)
        {
            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "已处理员工周计划";
            cspbItem.IconImage = "images/EvaluateUserPlan.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "UserPlanWeek/EvaluatedUserPlanWeek.aspx";
        }





        #endregion

        #region 统计分析

        if (_display == 1)
        {
            cspbGroup = panel.Groups.Add();
            cspbGroup.Caption = "统计分析";


            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门年计划统计分析";
            cspbItem.IconImage = "images/quarterAnaly.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Report/QuarterReport.aspx";

            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门月计划统计分析";
            cspbItem.IconImage = "images/monthAnaly.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Report/MonthReport.aspx";

            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门周计划统计分析";
            cspbItem.IconImage = "images/weekAnaly.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Report/WeekReport.aspx";

            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门月计划统计";
            cspbItem.IconImage = "images/departmentAnaly.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Report/MonthDepartment.aspx";

            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "部门周计划统计";
            cspbItem.IconImage = "images/companyAnaly.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Report/WeekDepartment.aspx";

            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "员工月计划统计";
            cspbItem.IconImage = "images/departmentAnaly.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Report/UserMonthDepartment.aspx";

            cspbItem = cspbGroup.Items.Add();
            cspbItem.Caption = "员工周计划统计";
            cspbItem.IconImage = "images/companyAnaly.gif";
            cspbItem.Target = "fmain";
            cspbItem.URL = "Report/UserWeekDepartment.aspx";
        }

        #endregion

        #region 个人应用
        //if (objUserInfo.UserName != "admin" && _display != 1)
        //{
        //    cspbGroup = panel.Groups.Add();
        //    cspbGroup.Caption = "个人应用";

        //    //if (_display != 1)
        //    //{
        //    //    //后续版本处理
        //    //    cspbItem = cspbGroup.Items.Add();
        //    //    cspbItem.Caption = "员工计划";
        //    //    cspbItem.IconImage = "images/UserPlan.gif";
        //    //    cspbItem.Target = "fmain";
        //    //    cspbItem.URL = "UserPlan/UserPlanManager.aspx";
        //    //}

        //}
        #endregion


    }

}
